/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package estatisticadescritiva;

import java.util.ArrayList;

/**
 *
 * @author Bush
 */
public class Media extends AbstractEstatistica{

    @Override
    public double calcula(ArrayList<Double> numeros) {
        double total = 0;
            for (int i = 0; i < numeros.size(); i++) {
                total += numeros.get(i);
            }
        return total / numeros.size();                
    }
        
}
